package com.demo.demo.controller;

import com.com.base.bean.ResultMessage;
import com.com.base.util.ResultMessageUtil;
import com.demo.demo.service.SubGxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/subgx")
@RestController
public class SubGxController {

    @Autowired
    private SubGxService subGxService;

    @RequestMapping("/find_gxid")
    public ResultMessage findByGxId(@RequestParam long gxid) {
        return ResultMessageUtil.success("", subGxService.findByGxid(gxid));
    }

}
